<#include "/layout/header.ftl" />
<#import "/include/ui.ftl" as blue />

<script>

$(function()
{
	
});

function save_click()
{
	$.simpleValid("#div_form", function(obj)
	{
		$.simpleAjax("/base/log/message_save", obj, function(o)
		{
			$.successAlert("保存成功", "save_success()", 2000);
		});
	});
}
function save_success()
{
	window.location = "${path}/base/log/message_list";
}
</script>

<div class="am-form am-form-horizontal am-cf am-margin" id="div_form">
<input type="hidden" name="id" value="${model.id!}"/>

	<fieldset>
		<legend>查看消息</legend>
		<div class="am-u-md-4">
			<div class="am-form-group">
				<label class="am-u-md-3 am-form-label am-padding-left-0 am-padding-right-0">发送者名称</label>
				<div class="am-u-md-8 am-u-end">
					<input type="text"  class="am-form-field am-radius" value="${model.senderName!}" readonly/>
				</div>
			</div>
		</div>
		<div class="am-u-md-4">
			<div class="am-form-group">
				<label class="am-u-md-3 am-form-label am-padding-left-0 am-padding-right-0">发送者手机</label>
				<div class="am-u-md-8 am-u-end">
					<input type="text"  class="am-form-field am-radius" value="${model.senderMobile!}" readonly/>
				</div>
			</div>
		</div>
		<div class="am-u-md-4">
			<div class="am-form-group">
				<label class="am-u-md-3 am-form-label am-padding-left-0 am-padding-right-0">发送者昵称</label>
				<div class="am-u-md-8 am-u-end">
					<input type="text"  class="am-form-field am-radius" value="${model.senderNickname!}" readonly/>
				</div>
			</div>
		</div>
		<div class="am-u-md-4">
			<div class="am-form-group">
				<label class="am-u-md-3 am-form-label am-padding-left-0 am-padding-right-0">接收者名称</label>
				<div class="am-u-md-8 am-u-end">
					<input type="text"  class="am-form-field am-radius" value="${model.receiverName!}" readonly/>
				</div>
			</div>
		</div>
		<div class="am-u-md-4">
			<div class="am-form-group">
				<label class="am-u-md-3 am-form-label am-padding-left-0 am-padding-right-0">接收者手机</label>
				<div class="am-u-md-8 am-u-end">
					<input type="text"  class="am-form-field am-radius" value="${model.receiverMobile!}" readonly/>
				</div>
			</div>
		</div>
		<div class="am-u-md-4">
			<div class="am-form-group">
				<label class="am-u-md-3 am-form-label am-padding-left-0 am-padding-right-0">接收者昵称</label>
				<div class="am-u-md-8 am-u-end">
					<input type="text"  class="am-form-field am-radius" value="${model.receiverNickname!}" readonly/>
				</div>
			</div>
		</div>
		<div class="am-u-md-4">
			<div class="am-form-group">
				<label class="am-u-md-3 am-form-label am-padding-left-0 am-padding-right-0">状态</label>
				<div class="am-u-md-8 am-u-end">
					<select  name="read" data-am-selected="{'btnWidth': '200px'}">
						<@blue.select list=map.read search=0 value=(model.read.index)! />
					</select>
				</div>
			</div>
		</div>
		<div class="am-u-md-4">
			<div class="am-form-group">
				<label class="am-u-md-3 am-form-label am-padding-left-0 am-padding-right-0">创建时间</label>
				<div class="am-u-md-8 am-u-end">
					<input type="text"  class="am-form-field am-radius" value="${(model.createTime?datetime)!}" readonly/>
				</div>
			</div>
		</div>

		<div class="am-u-md-12">
			<div class="am-form-group">
				<label class="am-u-md-1 am-form-label am-padding-left-0 am-padding-right-0">标题</label>
				<div class="am-u-md-10 am-u-end">
					<input type="text"  class="am-form-field am-radius" value="${model.title!}" readonly/>
				</div>
			</div>
		</div>
		<div class="am-u-md-12">
			<div class="am-form-group">
				<label class="am-u-md-1 am-form-label am-padding-left-0 am-padding-right-0">内容</label>
				<div class="am-u-md-10 am-u-end">
					<textarea  class="am-form-field am-radius" style="height: 400px;" readonly>${model.content!}</textarea>
				</div>
			</div>
		</div>

		<div class="am-u-md-12 am-text-center div_btn">
			<!--<a href="javascript:void(0)" onclick="save_click()" class="am-btn am-btn-primary am-radius">保存</a>-->
			<a href="javascript:void(0)" onclick="save_success()" class="am-btn am-btn-default am-radius am-margin-left">返回</a>
		</div>
	</fieldset>
</div>

<#include "/layout/footer.ftl" />